import entity.Pet;
import factory.PetDaoFactory;
import service.PetService;
import service.PetServiceImpl;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/11/29  11:29
 */
public class Main {
    public static void main(String[] args) {
        //领导要修改成oracle实现，只需修改一个变量即可切换
        PetDaoFactory.defaltBeanName="petDaoOracleImpl";
        //创建PetService
        PetService petService=new PetServiceImpl();
        Pet pet=new Pet();
        pet.setName("小马喽");
        petService.save(pet);
    }
}
